package Ptolemaiosz;

public class ConcreteGraphycalElementCreator {

	public static GraphicalElement getGraphicalEntity(Key k) {
            String id = "key";
            KeyGraphicalEntity keygraphent = new KeyGraphicalEntity();
            keygraphent.setPhysicalEntity(k.getPhysicalEntity());
            keygraphent.setTextureId(id);
            return (GraphicalElement)keygraphent;
	}
	public static GraphicalElement getGraphicalEntity(Door d) {
            String id = "door";
            DoorGraphicalEntity doorgraphent = new DoorGraphicalEntity();
            doorgraphent.setPhysicalEntity(d.getPhysicalEntity());
            doorgraphent.setTextureId(id);
            return (GraphicalElement)doorgraphent;
	}
	public static GraphicalElement getGraphicalEntity(Avatar a) {
            String id = "avatar";
            AvatarGraphicalEntity avatargraphent = new AvatarGraphicalEntity();
            avatargraphent.setPhysicalEntity(a.getPhysicalEntity());
            avatargraphent.setTextureId(id);
            return (GraphicalElement)avatargraphent;
	}      
	public static GraphicalElement getGraphicalEntity(Wall w) {
            String id = "wall";
            WallGraphicalEntity wallgraphent = new WallGraphicalEntity();
            wallgraphent.setPhysicalEntity(w.getPhysicalEntity());
            wallgraphent.setTextureId(id);
            return (GraphicalElement)wallgraphent;
	}
}